import { defineStore } from "pinia";
 

//defineStore第一个参数:唯一的,不能重复
export const testStore = defineStore('testStore', {
    state:()=> {
        return {
            count:2
        }
    },
    getters: {
        getCount(state) {
          return  state.count
        },
    },
    actions: {
        setCount(count: number) {
            this.count = count;
      }
    }
})